#!/bin/bash

CURRENT_DIR=$(cd "$(dirname "$0")"; pwd)

server_IP=192.21.4.0/24
sudo apt install -y net-tools
sudo apt install -y nfs-kernel-server

echo "${CURRENT_DIR}/../model  ${server_IP}(rw,sync,no_root_squash)" | sudo tee -a /etc/exports

sudo exportfs -arv
sudo systemctl restart nfs-kernel-server
sudo systemctl status nfs-kernel-server